package com.decent.enums;


/**
 * @author decent
 */

public enum MessageEnum {
    /**
     *
     */
    NULL_MSG(2001,null),

    TOKEN_EXPIRED(2002, "登录过期"),
    VALID_ERROR(2003, "token校验错误"),
    CODE_ERROR(2004, "服务出错"),
    PARAM_ERROR(2005, "参数错误"),
    SORT_TYPE_PARAM_ERROR(2006, "sortType传参错误"),


    GENERAL_REQUEST_SUCCESS(2007, "OK"),
    GENERAL_REQUEST_ERROR(2008,"ERROR"),

    STOCK_NO_ENOUGH(2009, "库存不足"),
    NO_PRODUCT(2010, "查无此产品"),
    PRODUCT_COUNT_ERROR(2011, "购买数量错误"),
    PRODUCT_NO_EXIST(2012, "产品不存在"),
    ORDER_STATUS_PARAM_ERROR(2013, "订单状态参数错误"),

    BRAND_TYPE_ID_IS_NULL(2014, "品牌类型id为空"),

    LOGIN_SUCCESS(2015, "登录成功"),
    LOGIN_PASSWORD_ERROR(2016, "请输入密码"),
    LOGIN_ERROR(2017, "账号或密码错误");


    MessageEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }



    private final Integer status;
    private final String msg;

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }


}
